

<?php //uid recent Post 5
    $recent=uidrecent($re['uid']);
?>

<script type="text/javascript">
    $("body").css("background-color","#F1F1F1");
</script>

<style type="text/css">
    img {max-width: 400px}
</style>

<script type="text/javascript" src="/plugins/ue/ueditor.config.js"></script>  
<script type="text/javascript" src="/plugins/ue/ueditor.all.js"></script> 

<span id="nav_post" AM={$re['bid']}></span>

<div class="col-md-8" style="margin-top:10px" >

<div class="row" style="background-color:#FFFFFF;border-radius:3px;padding:5px;margin-bottom:10px">
    <span><a href="/index.php/Index">Home</a>/<a class="text-warning" href="/index.php/Index/board/bid/{$re['bid']}">{$re['bid']|bidname}</a>/<a href="/index.php/Index/post/pid/{$re['pid']}" class="text-success">{$re['pid']|pidname}</a></span>
</div>

<div class="row"  style="background-color:#FFFFFF;border-radius:8px;padding:30px;margin-bottom:10px">
        <h4><a href="/index.php/Index/post/pid/{$re['pid']}">{$re['pid']|pidname}</a></h4>
        <p class="text-muted">{$re['pid']|pid_all}</p>
        <button class="btn btn-default" data-toggle="modal" data-target="#myModal"> >>>>点击查看帖子详情<<<< </button>
        <hr>
            <div class="row" style="margin-left:10px">
                <p class="row"><b class="text-muted">第{$re['lc']}楼</b></p>
                <p class="row" AM="userinfo">
                    <span class="col-xs-1"><a href="/index.php/Profile/index?uid={$re['uid']}"><img src="{$re["uid"]|uidimage}" width="50px" class="img-circle"></a></span>
                    <span class="col-xs-3">
                        <span class="row"><a href="/index.php/Profile/index?uid={$re['uid']}">{$re["uid"]|uidname}</a></span> 
                        <i class="row"><small>#{$re['rid']} /发布于 {$re['time']|date="Y-m-d H:i",###}</small></i>
                    </span>
                </p>
            </div>
            <div class="row" style="padding-left:25px;margin-top:15px">
                {$re['text']}
            </div>

</div>

<script type="text/javascript" src="/plugins/ue/ueditor.config.js"></script>  
<script type="text/javascript" src="/plugins/ue/ueditor.all.js"></script> 


<div class="row" style="background-color:#FFFFFF;border-radius:3px;padding:20px;margin-bottom:10px">
<div class="hide" id="ed">
</div>

<div class="row">
    <form action="" method="post">
        <input type="text" name="pid" value="{$re['pid']}" class="hide">
        <input type="text" name="bid" value="{$re['bid']}" class="hide">
        <input type="text" name="rrid" value="{$re['rid']}" class="hide">
        <textarea name="text" id="tx">
        </textarea>
        <button class="btn btn-primary">回复</button>
    </form>
</div>
</div>
<script type="text/javascript">
//change for id or use 
var ue=UE.getEditor('tx' ,{
        toolbars: [
            [
                'source', //源代码
                'undo', //撤销
                'redo', //重做
                'bold', //加粗
                'italic', //斜体
                'underline', //下划线
                'strikethrough', //删除线
                'fontfamily', //字体
                'forecolor', //字体颜色
                'fontsize', //字号
                'link', //超链接
                'unlink', //取消链接
                'emotion', //表情
                'backcolor', //背景色
                'insertimage', //多图上传
                'attachment', //附件
                'removeformat', //清除格式
                'horizontal', //分隔线
                'inserttable', //插入表格
                'fullscreen', //全屏
            ]
        ]
    }
    )
    var ed=$("#ed").html();
    ue.addListener("ready",function(){
        ue.setContent(ed);
    })

</script>
</div>

<div class="col-md-3">
    <div class="row" style="background-color:#FFFFFF;border-radius:8px;padding:30px;margin:10px;margin-left:5px">
        <form action="/index.php/Index/search" method="get" >
            <div class="row">
                <div class="input-group">
                    <input type="text" name="title" class="form-control" placeholder="主题名称">
                    <span class="input-group-btn">
                        <input type="SUBMIT" class="btn btn-default" VALUE="搜索">
                    </span>
                </div>
            </div>
        </form>
    </div>
    <div class="row" style="background-color:#FFFFFF;border-radius:8px;padding-top:10px;margin:10px;margin-left:5px">
        <p class="text-center"><?php sign_button(); ?></p>
    </div>
    <div  class="row" style="background-color:#FFFFFF;border-radius:8px;padding:30px;margin:10px;margin-left:5px">
        <p>
            <a href="/index.php/Profile/index?uid={$re['uid']}" ><img src="{$re['uid']|uidimage}" width="150px" class="img-circle center-block"></a>
        </p>
        <p >
            <h4 class="text-center"><a href="/index.php/Profile/index?uid={$re['uid']}">{$re['uid']|uidname}</a></h4>
        </p>    
        <hr>
        <p class="text-center">
            <h5 class="text-muted">最新发布的主题:</h5>
            <ul>
                <volist name="recent" id="recent_post">
                    <li><a href="/index.php/Index/post/pid/{$recent_post['pid']}">{$recent_post['title']}</a></li>

                </volist>
            </ul>
        </p>

    </div>

    <div class="row" style="background-color:#FFFFFF;border-radius:8px;padding:30px;margin:10px;margin-left:5px">
        <?php
            footer();
        ?>
    </div>
</div>
<script type="text/javascript">
    var n_id=$("#nav_post").attr("AM");
    $("#n_"+n_id).addClass("active");
</script>






<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="myModalLabel">{$re['pid']|pidname}</h4>
      </div>
      <div class="modal-body">
       {$re['pid']|pidtext}
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>